<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>表格</title>
</head>
<body>
<table border="1">
    <thead>
    <tr>
        <td>ID</td>
        <td>Name</td>
        <td>操作</td>
    </tr>
    </thead>
    <tbody>
    <tr>
        <td>1001</td>
        <td>AAA</td>
        <td>
            <input type="button" value="删除" class="delButton">
        </td>
    </tr>
    <tr>
        <td>1002</td>
        <td>BBB</td>
        <td>
            <input type="button" value="删除" class="delButton">
        </td>
    </tr>
    <tr>
        <td>1003</td>
        <td>CCC</td>
        <td>
            <input type="button" value="删除" class="delButton">
        </td>
    </tr>
    <tr>
        <td>1004</td>
        <td>DDD</td>
        <td>
            <input type="button" value="删除" class="delButton">
        </td>
    </tr>
    </tbody>
</table>
<script src="static/JavaScript/jquery-3.6.4.min.js"></script>
<script>
    $(function () {
        $(".delButton").click(function () {
            $(this).parent().parent().remove();
        })
    })
</script>
</body>
</html>